<?php
namespace Views\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){

    	$username='linda';
    	$email='linda@jike.com';
    	$age=18;
    	$birthday_year=2018;

    	$user = array(
			'username'=>'linda',
    		'email'=>'linda@jike.com',
    		'age'=>17
    		);
    	// $this->assign('user',$username);
    	// $this->assign('mail',$email);
    	// $this->assign('age',$age);

    	$this->assign('birthday_year',$birthday_year);
    	$this->assign('user',$user);
    	//$this->display();

    	$fetchContent=$this->fetch();
    	$fetchContent=str_replace('jike','jikexuwyuan',$fetchContent);
    	$this->show();
    }
}